using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;

public class UIStorePanel : UIBasePanel
{
    public GameObject BuyPanel;

    public Store StoreCfg;
    // Start is called before the first frame update
    void Start()
    {
        if (UIInfo.opd is int)
        {
            int StoreId = (int)UIInfo.opd;
            StoreCfg = DM.Store[StoreId];
        }
        else
        {
            Debug.LogError("store面板没有传入商店id");
            return;
        }
        BuyPanel = GameObject.Find("BuyPanel");
        StoreManger.instance.CreateItem(BuyPanel,StoreCfg);
    }

    // Update is called once per frame
    void Update()
    {

    }

}
